#pragma once
#include"RoleNet.h"
#include "Role.h"
#include "../../include/UtilInclude.h"
#include "../../include/ManagerInclude.h"

class RoleProxy:public GameProxy
{
public:
	RoleProxy(void);
	~RoleProxy(void);

	const Role*  getPlayer(){ return _localPlayer; }
	void netRoleInfo(TagNetMsg* info);
private:
	void clearRoleList();
	void addRole(Role* role);

private:
	Role* _localPlayer;
	map<unsigned long long, Role*> _roleList;
};

